package com.quanyan.ic.vendingMachine.http.service;

import com.quanyan.ic.vendingMachine.model.UpgradeVersionReq;
import com.quanyan.ic.vendingMachine.model.UpgradeVersionResp;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by Administrator on 2017/8/23.
 */
public interface VmUpgradeService {

   UpgradeVersionResp getUpgradeInfo(UpgradeVersionReq req,HttpServletRequest request);//返回需要更新的对象

   String uploadFileToType(MultipartFile file, UpgradeVersionResp req);

   String sendUpgradeCmd(UpgradeVersionReq req);

   void updateUpgradeRecord(String vmNumber, String upgradeFileType,int status);
   String  fileDownload(String fileType, String fileName, HttpServletResponse res);
}
